{include file="Include/H_ui_head" /}
<title>帮助中心修改</title>
</head>
<body>
<article class="page-container">
    <form action="javascript:;" method="POST" class="form form-horizontal" id="submit">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>帮助中心：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea name="text" class="input-text" style="height: 300px;width: 300px;">{$rs.helpCenter}</textarea>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input type="hidden" name="hid" value="{$rs.p_id}">
                <button type="button" class="btn btn-success radius"
                        id="admin-role-save" name="admin-role-save" onclick="return reject()" >
                    <i class="icon-ok"></i>确定</button>
            </div>
        </div>
    </form>
</article>
{include file="include/H_ui_foot" /}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__LIB__/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
    function reject()
    {
        var id = $("[name='hid']").val();
        var url = "{:url('Platform/helpCenter_edit')}";
        var reject = $("[name='text']").val();
        var loading =layer.msg('正在提交数据，请稍后...',{time:5000});
        $.post(url,{helpCenter:reject,pid:id},function(data){
            layer.close(loading);
            if(data.code=='1'){
                layer.msg(data.msg,{time:2000});
                setTimeout(function(){
                    layer_close(this.index);
                    parent.location.reload();
                },1000);
            }else{
                layer.msg(data.msg,{time:2000});
            }
        });
    }
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
